package com.imooc.pan.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.imooc.pan.web.serializer.Date2StringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Janson
 * @Description 用户存储大小视图接口
 * @Date 2023/7/31
 */
@ApiModel(value = "用户存储大小实体")
@Data
public class UserStorageSizeVO implements Serializable {
    
    private static final long serialVersionUID = 831556981609248699L;
    
    /**
     * 用户总存储大小(GB)
     */
    private BigDecimal storageSize;
    
    /**
     * 用户已使用存储大小(GB)
     */
    private BigDecimal usedSize;
    
    /**
     * 用户购买存储大小(GB)
     */
    private BigDecimal userBuyStorageSize;
    
    private BigDecimal percentage;
    /**
     * 用户购买存储大小到期时间
     */
    @JsonSerialize(using = Date2StringSerializer.class)
    private Date userBuyEpiredTime;
    
}